/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ucb.ProjetoFinal.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author DCBorges
 */
@Embeddable
public class PesquisaCadastralPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_SQNCL_PESQUISA")
    private short nuSqnclPesquisa;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_SQNCL_SISTEMA")
    private short nuSqnclSistema;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_SNQCL_GRPO_FMLR")
    private int nuSnqclGrpoFmlr;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_SQNCL_PRTCE")
    private short nuSqnclPrtce;

    public PesquisaCadastralPK() {
    }

    public PesquisaCadastralPK(short nuSqnclPesquisa, short nuSqnclSistema, int nuSnqclGrpoFmlr, short nuSqnclPrtce) {
        this.nuSqnclPesquisa = nuSqnclPesquisa;
        this.nuSqnclSistema = nuSqnclSistema;
        this.nuSnqclGrpoFmlr = nuSnqclGrpoFmlr;
        this.nuSqnclPrtce = nuSqnclPrtce;
    }

    public short getNuSqnclPesquisa() {
        return nuSqnclPesquisa;
    }

    public void setNuSqnclPesquisa(short nuSqnclPesquisa) {
        this.nuSqnclPesquisa = nuSqnclPesquisa;
    }

    public short getNuSqnclSistema() {
        return nuSqnclSistema;
    }

    public void setNuSqnclSistema(short nuSqnclSistema) {
        this.nuSqnclSistema = nuSqnclSistema;
    }

    public int getNuSnqclGrpoFmlr() {
        return nuSnqclGrpoFmlr;
    }

    public void setNuSnqclGrpoFmlr(int nuSnqclGrpoFmlr) {
        this.nuSnqclGrpoFmlr = nuSnqclGrpoFmlr;
    }

    public short getNuSqnclPrtce() {
        return nuSqnclPrtce;
    }

    public void setNuSqnclPrtce(short nuSqnclPrtce) {
        this.nuSqnclPrtce = nuSqnclPrtce;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) nuSqnclPesquisa;
        hash += (int) nuSqnclSistema;
        hash += (int) nuSnqclGrpoFmlr;
        hash += (int) nuSqnclPrtce;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PesquisaCadastralPK)) {
            return false;
        }
        PesquisaCadastralPK other = (PesquisaCadastralPK) object;
        if (this.nuSqnclPesquisa != other.nuSqnclPesquisa) {
            return false;
        }
        if (this.nuSqnclSistema != other.nuSqnclSistema) {
            return false;
        }
        if (this.nuSnqclGrpoFmlr != other.nuSnqclGrpoFmlr) {
            return false;
        }
        if (this.nuSqnclPrtce != other.nuSqnclPrtce) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.ucb.ProjetoFinal.domain.PesquisaCadastralPK[ nuSqnclPesquisa=" + nuSqnclPesquisa + ", nuSqnclSistema=" + nuSqnclSistema + ", nuSnqclGrpoFmlr=" + nuSnqclGrpoFmlr + ", nuSqnclPrtce=" + nuSqnclPrtce + " ]";
    }
    
}
